#include <stdio.h> 
#include <stdlib.h> 
#include <string.h> 

int mdsuspend(int fd){
 
  char *response;  
  
  if (mdsend_command_and_get_response(fd, "SUSPEND\n", &response) == -1)
    return 1;
  else if (strstr(response, "200") == NULL)
  {
    fprintf(stderr, "%s", response);
    return 1;
  }
  else
    return 0;
}
